<template>
  <div class="delivery-wrap">
    <span>{{deliveryText || '--'}}</span>
  </div>
</template>

<script>
export default {
  name: 'Delivery',
  props: {
    row: {
      type: Object,
      default: () => { }
    }
  },
  data () {
    return {}
  },
  computed: {
    deliveryText () {
      let text = null;
      let pickDesc = `${(this.row.pickDesc === "是" && "提货") || ""}`;
      let deliverDesc = `${(this.row.deliverDesc === "是" && "送货") || ""}`;
      if (pickDesc || deliverDesc) {
        text = `${pickDesc}  ${deliverDesc}`;
      }
      return text;
    }
  }
}
</script>

<style>
</style>